package cn.xy.commons.constant;

/**
 * 常用常量
 *
 *  @author xy
 */
public final class Consts {

    /**
     * 图形验证码头部标识名
     */
    public static final String KAPTCHA_SESSION_KEY = "KAPTCHA_SESSION_KEY";
    /**
     * 空字符串
     */
    public static final String EMPTY = "";
    /**
     * 空格字符串
     */
    public static final String SPACE = " ";
    /**
     * 空格字符
     */
    public static final char EMPTY_CHAR = ' ';
    /**
     * 下划线
     */
    public static final String UNDERLINE = "_";
    /**
     * null字符串
     */
    public static final String NULL = "null";
    /**
     * 空json字符串
     */
    public static final String EMPTY_JSON = "{}";
    /**
     * 逗号
     */
    public static final String COMMA = ",";
    /**
     * 逗号字符
     */
    public static final char COMMA_CHAR = ',';
    /**
     * 小数点
     */
    public static final char DOT = '.';
    /**
     * 反斜杠
     */
    public static final String SLASH = "/";
    /**
     * 斜杠
     */
    public static final char BACK_SLASH = '\\';
    /**
     * 换行符
     */
    public static final char NEWLINE = '\n';
    /**
     * tab符
     */
    public static final char TAB = '\t';
    /**
     * true
     */
    public static final String TRUE = "true";
    /**
     * false
     */
    public static final String FALSE = "false";
    /**
     * 数字
     */
    public static final String DECIMAL = "0123456789";
    /**
     * 小写字母
     */
    public static final String LOWERCASE = "abcdefghijklmnopqrstuvwxyz";
    /**
     * 大写字母
     */
    public static final String UPPERCASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    /**
     * 十六进制字符串
     */
    public static final String HEX = "0123456789ABCDEF";
    /**
     * 数字字母组合，36进制字符串
     */
    public static final String DECIMAL_AND_UPPERCASE = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    /**
     * 数量（如每页显示数量）
     */
    public static final int SIZE = 20;
    /**
     * 最大数量（如每次最多取多少条数据）
     */
    public static final int MAX = 10000;
    /**
     * IO Buffer 大小
     */
    public static final int IO_BUFFER_SIZE = 16384;
    /**
     * 系统
     */
    public static final String SYSTEM = "SYSTEM";
    /**
     * 返回结果code字段名
     */
    public static final String RESULT_CODE = "code";
    /**
     * 返回结果message字段名
     */
    public static final String RESULT_MSG = "msg";
    /**
     * 返回结果data字段名
     */
    public static final String RESULT_DATA = "data";
    /**
     * 成功码
     */
    public static final int SUCCESS_CODE = 0;
    /**
     * 失败码
     */
    public static final int FAILED_CODE = 1;
    /**
     * 错误码
     */
    public static final int ERROR_CODE = 500;
    /**
     * 未登录
     */
    public static final int NO_LOGIN_CODE = 1000;
    public static final int USER_NOT_EXIST = 1001;
    public static final int NO_AUTHORIZATION = 1002;
    /**
     * 用户禁用
     */
    public static final int USER_BANNED = 1002;
    public static final int NEED_RE_LOGIN = 1003;
    public static final int FORBIDDEN = 403;
    public static final int NOT_FOUND = 404;
    /**
     * 参数缺失
     */
    public static final int PARAM_MISS = 10000;
    /**
     * 时间戳超时
     */
    public static final int TIMESTAMP_EXPIRE = 10001;
    /**
     * 签名错误
     */
    public static final int SIGN_ERROR = 10002;

    private Consts() {
        throw new IllegalStateException("Utility class");
    }
}
